/**
 * Created by Administrator on 2017.2.18.
 */
$(function () {


     var  page= window.location.search;
    alert(page);

    //var reg = /^[0-9]$/;
  //var go=  reg.test(page);
  //  console.log(reg);

    product(page);
    function product(page) {
        $.ajax({
            type: 'get',
            url: 'http://139.199.157.195:9090/api/getdiscountproduct'+page,
            beforeSend: function () {
            },
            success: function (info) {
                console.log(info);
                var html = template('contentTpl', info);
                $('.content>.content-center').html(html);
            }
        });
    }




})